package com.oocl.euc.core.maintenance.model;

import com.oocl.euc.audit.AuditEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "PCRS_REQUEST_STATUS")
@SequenceGenerator(name = "SEQUENCE_GENERATOR", sequenceName = "REQUEST_STATUS_SEQUENCE", allocationSize = 1)
public class Status extends AuditEntity {

    @Column(name = "STATUS_NAME",nullable = false)
    private String statusName;

    @Column(name = "STATUS_DESC")
    private String statusDesc;

    @Column(name = "STATUS_TYPE")
    private String statusType;

    @Column(name = "SORT_SEQ")
    private Integer sortSeq;

    @Column(name = "ACTIVE")
    private boolean active;

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }

    public String getStatusType() {
        return statusType;
    }

    public void setStatusType(String statusType) {
        this.statusType = statusType;
    }

    public Integer getSortSeq() {
        return sortSeq;
    }

    public void setSortSeq(Integer sortSeq) {
        this.sortSeq = sortSeq;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    @Override
    public void setId(Long id) {
        super.setId(id);
    }
}
